package com.riko.comic.module.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.riko.comic.module.comic.bean.vo.ComicsVo;
import com.riko.comic.module.sys.bean.po.Collect;
import com.riko.comic.module.sys.mapper.CollectMapper;
import com.riko.comic.module.sys.service.ICollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wudechuang
 * @since 2021-11-01
 */
@Service
public class CollectServiceImpl extends ServiceImpl<CollectMapper, Collect> implements ICollectService {
    @Autowired
    private CollectMapper collectMapper;

    public List<ComicsVo> queryByUserId(int userId){
        return collectMapper.queryByUserId(userId);
    }

    public void delByIds(Collect collect){
        collectMapper.delByIds(collect);
    }
}
